package com.shenbinhong.proxyip.entity;

import java.io.Serializable;

/**
 * Created by 123430134@qq.com on 2016/6/2.
 */
public class ProxyIPEntity implements Serializable {


    /**
     * ip
     */
    private String host; // ip

    /**
     * 端口
     */
    private int port; // 端口

    /**
     * 服务器地址
     */
    private String address; // 服务器地址

    /**
     *  是否高匿(高匿，透明)
     */
    private String isHide; // 是否高匿

    /**
     * 类型.默认http
     */
    private String type; //
    /**
     * 网络速度，单位为妙
     */
    private Float speed; // 网络速度，单位为妙
    /**
     * 连接时间 ，单位为妙
     */
    private Float connectTime; // 连接时间 ，单位为妙
    /**
     * 存活时间,单位统一处理为分钟
     */
    private Integer aliveTime; // 存活时间
    /**
     * 验证时间
     */
    private String verifyTime; // 验证时间


    /**
     * Instantiates a new Proxy ip entity.
     */
    public ProxyIPEntity() {

    }

    /**
     * Instantiates a new Proxy ip entity.
     *
     * @param host        the host
     * @param port        the port
     * @param address     the address
     * @param isHide      the is hide
     * @param type        the type
     * @param speed       the speed
     * @param connectTime the connect time
     * @param aliveTime   the alive time
     * @param verifyTime  the verify time
     */
    public ProxyIPEntity(String host, int port, String address, String isHide, String type, Float speed, Float connectTime, Integer aliveTime, String verifyTime) {
        this.host = host;
        this.port = port;
        this.address = address;
        this.isHide = isHide;
        this.type = type;
        this.speed = speed;
        this.connectTime = connectTime;
        this.aliveTime = aliveTime;
        this.verifyTime = verifyTime;
    }

    /**
     * 获取ip
     *
     * @return host
     */
    public String getHost() {
        return host;
    }

    /**
     * 设置ip
     *
     * @param host the host
     */
    public void setHost(String host) {
        this.host = host;
    }

    /**
     * 获取端口
     *
     * @return 端口号 port
     */
    public int getPort() {
        return port;
    }

    /**
     * 设置端口号
     *
     * @param port the port
     */
    public void setPort(int port) {
        this.port = port;
    }

    /**
     * 获取服务器地址
     *
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置服务器地址
     *
     * @param address the address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 返回是否高匿
     *
     * @return 高匿 |透明
     */
    public String getIsHide() {
        return isHide;
    }

    /**
     * 设置是否高匿
     *
     * @param isHide （"高匿"|"透明"）
     */
    public void setIsHide(String isHide) {
        this.isHide = isHide;
    }

    /**
     * 返回代理类型
     *
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置代理类型
     *
     * @param type the type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取 代理网络速度
     *
     * @return speed
     */
    public Float getSpeed() {
        return speed;
    }

    /**
     * 设置  代理网络速度
     *
     * @param speed the speed
     */
    public void setSpeed(Float speed) {
        this.speed = speed;
    }

    /**
     * 获取代理连接时间
     *
     * @return connect time
     */
    public Float getConnectTime() {
        return connectTime;
    }

    /**
     * 设置代理连接时间
     *
     * @param connectTime the connect time
     */
    public void setConnectTime(Float connectTime) {
        this.connectTime = connectTime;
    }

    /**
     * 获取代理存活时间
     *
     * @return alive time
     */
    public Integer getAliveTime() {
        return aliveTime;
    }

    /**
     * 设置代理存活时间
     *
     * @param aliveTime the alive time
     */
    public void setAliveTime(Integer aliveTime) {
        this.aliveTime = aliveTime;
    }

    /**
     * 获取代理验证时间
     *
     * @return verify time
     */
    public String getVerifyTime() {
        return verifyTime;
    }

    /**
     * 设置代理验证时间
     *
     * @param verifyTime the verify time
     */
    public void setVerifyTime(String verifyTime) {
        this.verifyTime = verifyTime;
    }

   /* public static void main(String[] args) {
        Double d = Double.parseDouble("0.031");
        Float f = Float.parseFloat("0.031");
        System.out.println(d.toString());
        System.out.println(f.toString());
    }*/


}
